package org.rcy.framework.rpc.monit;

import org.rcy.framework.rpc.annotations.RpcInject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@RpcInject
public class DefaultHealthServiceImpl implements HealthService {
	private final Logger logger = LoggerFactory.getLogger(getClass());

	public DefaultHealthServiceImpl() {
		super();
		logger.info(">>> Default HealthService init...");
	}

	@Override
	public Health health() {
		return Health.currentHealth("Rpc service is OK.");
	}
}
